import random

list1 = [i for i in range(1, 6 + 1)]
# input("玩家1.任意键开始：")
a = (random.choices(list1, k=3))
print(a)
# input("玩家2.任意键开始：")
b = (random.choices(list1, k=3))
print(b)

j = a[0] + a[1] + a[2]
j1 = b[0] + b[1] + b[2]
if j < j1:
    print("玩家2 胜")
else:
    print("玩家1 胜")

# # 玩色子
# import random
#
# list1 = [x for x in range(1, 7)]
# print(list1)
# # print("第一颗色子", random.sample(list1, 1))
# # print("第二颗色子", random.sample(list1, 1))
# # print("第三颗色子", random.sample(list1, 1))
# a = random.sample(list1, 1)
# b = random.sample(list1, 1)
# c = random.sample(list1, 1)
# print("三个色子:", a, b, c)
# print(type(a))
#
#
# def get_point(*var):
#     sum1 = 0
#     for i in var:
#         sum1 += i
#     return sum1
#
#
# print(get_point(a[0], b[0], c[0]))

# # 掷三个色子,显示每个色子的数值以及三个数值的求和
# import random
#
# a = random.randint(1, 6)
# b = random.randint(1, 6)
# c = random.randint(1, 6)
# var = a + b + c
# print('色子一:', a)
# print('色子二:', b)
# print('色子三:', c)
# print('总和:  ', var)
